import 'package:flustars/flustars.dart';
import 'package:testlzhu/bean/loginbean_entity.dart';

class LoginUtils {
  static LoginUtils? loginUtils;

  static LoginUtils init() {
    loginUtils ??= LoginUtils();
    return loginUtils!;
  }

  void backLoginData(LoginbeanUserinfo? data) {
    SpUtil.putObject("login", data!);
    SpUtil.putString("token", data.token!);
    SpUtil.putString("phone", data.mobile!);
    SpUtil.putInt('userid', data.id!);

  }
}
